package com.example.testdemo.spring.config;

import com.example.testdemo.Women;
import com.example.testdemo.annotation.Autowired;
import com.example.testdemo.annotation.Component;
import com.example.testdemo.db.CreateTableSignal;

/**
 * <p>
 *
 * </p>
 *
 * @author 永健
 * @since 2020-03-29 03:17
 */
@Component
public class MyInitializingBean implements InitializingBean {

    @Autowired
    Women women;

    @Override
    public void afterPropertiesSet() {
        CreateTableSignal.loadOver();
        MyApplicationContextAware.getApplicationContext();
        women.eat();
    }
}
